/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.io.Serializable;

/**
 *
 * @author DucCuong
 */
public class User implements Serializable{
    String User1, User2, Id, Password;

    public void setScore1(int score1) {
        this.score1 = score1;
    }

    public void setScore2(int score2) {
        this.score2 = score2;
    }
    int score1=0 , score2=0 ;
    public User() {
    }

    public User(String User1, String User2, String Id, String Password) {
        this.User1 = User1;
        this.User2 = User2;
        this.Id = Id;
        this.Password = Password;
    }

    public String getUser1() {
        return User1;
    }

    public String getUser2() {
        return User2;
    }

    public String getId() {
        return Id;
    }

    public int getScore1() {
        return score1;
    }

    public int getScore2() {
        return score2;
    }

    @Override
    public boolean equals(Object obj){
        User obj1= (User) obj;
        if(this.Id.equals(obj1.Id) && this.Password.equals(obj1.Password) ) return true;
        else return false;
    }
   
}
